package com.longge;

public class MaximumValue {

    public int maximumValue(String[] strs) {

        int max = 0;
        for (String str : strs) {
            char[] chars = str.toCharArray();
            for (int i = 0, charsLength = chars.length; i < charsLength; i++) {
                char aChar = chars[i];
                if (!Character.isDigit(aChar)) {
                    max = Math.max(chars.length, max);
                    break;
                }
                if (i == charsLength - 1) {
                    max = Math.max(Integer.parseInt(str), max);
                }
            }

        }
        return max;
    }
}
